package com.syher.security;

import com.syher.security.core.filter.CrossOriginFilter;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;

@EnableAutoConfiguration
@ComponentScan(basePackages = {
		"com.syher.security.core",
		"com.syher.security.web.service",
		"com.syher.security.web.controller"
})
public class SpringBootSecurityApplication implements CommandLineRunner {

	public static void main(String[] args) {
		SpringApplication.run(SpringBootSecurityApplication.class, args);
	}

	@Override
	public void run(String... strings) throws Exception {
	}

    /**
     * 跨域
     */
    /*@Bean
    public FilterRegistrationBean corsFilter() {
	    return new FilterRegistrationBean(new CrossOriginFilter());
    }*/
}
